

#1.指定基础镜像    
FROM registry.cn-beijing.aliyuncs.com/ligang1359/jdk8:v1

MAINTAINER ligang ligang@163.com

# 复制文件到容器
ADD sample-test.jar /sample-test.jar

ENV ENV=PRO
ENV apollo.meta=http://47.92.220.126:18080
ENV apollo.configService=http://47.92.220.126:18080


# 声明需要暴露的端口
EXPOSE 6001


# 配置容器启动后执行的命令
ENTRYPOINT ["java","-Xmx125m","-jar","/sample-test.jar"]

#CMD ["--spring.profiles.active=dev"]

#docker build -t game-server:v1.0 .